import java.math.BigInteger;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

/**
 * @Classname test
 * @Description
 * @Date 2021/10/8 15:36
 * @Created by ZhuKK
 */
public class test {
    public static void main(String[] args) {
        String s = "0P";
        char[] chars = s.toCharArray();
        String str = "";
        for (int i = 0; i < chars.length; i++) {
            if ((chars[i] >= 'A' && chars[i] <= 'Z') || (chars[i] >= 'a' && chars[i] <= 'z') || (chars[i] >= '0' && chars[i] <= '9')){
                str += chars[i];
            }
        }
        String res = str.toLowerCase();
        String rever = new StringBuffer(res).reverse().toString();
        System.out.println(res.equals(rever));
    }

}
